package com.bw.common.entity

import com.flyco.tablayout.listener.CustomTabEntity

class MyTab :CustomTabEntity {

    private lateinit var title:String
    private lateinit var selectIcon:Integer
    private lateinit var unSelectIcon:Integer

    constructor(title: String, selectIcon: Int, unSelectIcon: Int) {
        this.title = title
        this.selectIcon = Integer(selectIcon)
        this.unSelectIcon = Integer(unSelectIcon)
    }


    override fun getTabTitle(): String {
        return title
    }

    override fun getTabSelectedIcon(): Int {
       return selectIcon.toInt()
    }

    override fun getTabUnselectedIcon(): Int {
        return unSelectIcon.toInt()
    }
}